﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NicoView.Model.Service.Comments.BodyTexts
{
    public class NicoNoneShowCommandBodyText : INicoCommentBodyText
    {
        internal NicoNoneShowCommandBodyText(string text)
        {
            this.Text = text;
        }

        public string AsUrl()
        {
            throw new NotSupportedException();
        }

        public ICollection<INicoCommentBodyText> ChildTexts
        {
            get { throw new NotSupportedException(); }
        }

        public bool HasUrl
        {
            get { return false; }
        }

        public string GetUserName()
        {
            throw new NotSupportedException();
        }

        public int GetAnchor()
        {
            throw new NotSupportedException();
        }

        public Tuple<int, int> GetRangeAnchor()
        {
            throw new NotSupportedException();
        }

        public NicoCommentBodyTextType BodyType
        {
            get { return NicoCommentBodyTextType.NoneShowCommand; }
        }

        public bool HasCurrentBodyText
        {
            get { return true; }
        }

        public bool HasChildBodyTexts
        {
            get { return false; }
        }

        public bool HasUserName
        {
            get { throw new NotSupportedException(); }
        }

        public bool IsCommand
        {
            get { return true; }
        }

        public bool IsUserShowCommand
        {
            get { return false; }
        }

        public bool IsOwnerShowCommand
        {
            get { return false; }
        }

        public string Text
        {
            get;
            private set;
        }

        public string DisplayText
        {
            get { return this.Text; }
        }
    }
}
